//
//  EditButton.m
//  LazyCat
//
//  Created by linhui on 16/1/8.
//  Copyright (c) 2016年 zhanshu. All rights reserved.
//

#import "EditButton.h"

@implementation EditButton

-(instancetype)initWithFrame:(CGRect)frame{
    if(self=[super initWithFrame:frame]){
        self.titleLabel.font = [UIFont systemFontOfSize:11];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        
    }
    return self;
}
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, 10, 20, 20);
}
- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(12, 0, 80, 40);
}

@end
